package com.usian.feign;

import com.usian.pojo.User;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;

@FeignClient(value = "sentinel-provider")
public interface UserFeign {
    @RequestMapping("/user/findById/{userId}")
    public User findById(@PathVariable Integer userId);


    @RequestMapping("/user/findId")
    public User findId(@RequestParam Integer userId);

    @RequestMapping("/user/insert")
    public User insert(User user);
}
